package com.ruoyi.system.service.impl;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.constant.UserConstants;
import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.exception.CustomException;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.system.domain.SysPost;
import com.ruoyi.system.domain.SysUserPost;
import com.ruoyi.system.domain.SysUserRole;
import com.ruoyi.system.domain.WeChatUserInfo;
import com.ruoyi.system.mapper.*;
import com.ruoyi.system.service.ISysConfigService;
import com.ruoyi.system.service.ISysUserService;
import com.ruoyi.system.service.IWeChatUserInfoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

/**
 * 用户 业务层处理
 * 
 * @author ruoyi
 */
@Service
public class WeChatUserInfoServiceImpl implements IWeChatUserInfoService
{

    @Autowired
    private WeChatUserInfoMapper wxuserMapper;


    @Override
    public List<WeChatUserInfo> selectWxUserList(WeChatUserInfo weChatUserInfo) {
        return wxuserMapper.selectWxUserList(weChatUserInfo);
    }

    @Override
    public WeChatUserInfo selectWxUserById(String unionid) {
        return wxuserMapper.selectWxUserById(unionid);
    }

    @Override
    public int insertWxUser(WeChatUserInfo weChatUserInfo) {
        return wxuserMapper.insertWxUser(weChatUserInfo);
    }

    @Override
    public int updateWxUser(WeChatUserInfo weChatUserInfo) {
        return wxuserMapper.updateWxUser(weChatUserInfo);
    }




}
